export const tableOption = {
  border: true, //是否带有纵向边框
  selection: true, //行最前面的选择框
  menuAlign: "center",
  searchLabelWidth: 110, //搜索项标题宽度
  searchIndex: 4, //筛选收缩
  searchIcon: true,
  align: "center", //对齐方式
  emptyText: '自定义暂无数据提示语',
  column: [
    {
      label: "活动ID",
      prop: "activityId",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      span: 12
    },
    {
      label: "活动名称",
      prop: "activityName",
      type: "input",
      span: 12
    },
    {
      label: "活动状态",
      prop: "status",
      type: 'switch',
      dicData: [{
        label: '失效',
        value: 'N'
      }, {
        label: '生效',
        value: 'Y'
      }],
      slot: true,
      search: true,
      value: 'Y',
      span: 12
    },
    {
      label: "开始时间",
      prop: "startTime",
      type: "datetime",
      format: 'yyyy-MM-dd HH:mm:ss',
      valueFormat: 'yyyy-MM-dd HH:mm:ss',
      span: 12
    },
    {
      label: "结束时间",
      prop: "endTime",
      type: "datetime",
      format: 'yyyy-MM-dd HH:mm:ss',
      valueFormat: 'yyyy-MM-dd HH:mm:ss',
      span: 12
    },
    {
      label: "活动公司",
      prop: "activityCompany",
      type: "input",
      span: 12
    },
    {
      label: "活动门店",
      prop: "activityStore",
      type: "select",
      dicUrl: `/admin/mall/store/list`,
      props: {
        label: 'storeName',
        value: 'storeNo'
      },
      formatter: (val, value, label) => {
        return `${label}(${value})`
      },
      span: 12
    },
    {
      label: "免费时长",
      prop: "freeDuration",
      type: "input",
      span: 12
    },
    {
      label: "抵扣积分",
      prop: "deductionPoints",
      type: "input",
      span: 12
    },
  ]
}
